<?php echo $this->renderPartial('_search_form', array('model' => $model));?>

<?php if ($mode == 1): ?>
<?php echo $this->renderPartial('_items', array('items' => $items, 'pages' => $pages)); ?>
<?php elseif ($mode == 2): ?>
<?php echo $this->renderPartial('_shops', array('shops' => $shops, 'pages' => $pages)); ?>
<?php endif; ?>